package com.zelin.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by WF on 2020/12/21 15:15
 */
// @RabbitListener(queues = "zelin")
@Component
public class Consumer01 {
    @RabbitHandler
    public void getMessage(String message){
        System.out.println("message = " + message);
    }
}
